
SRCS = minapl Buffer CommonCodeGen X86CodeGen Token Tokenizer

%.o : %.cc
	mkdir -p .deps
	g++ -c $*.cc -g -MD  -MF .deps/$*.d -o $*.o

minapl : $(foreach f,$(SRCS),$f.o)
	g++ $^ -o minapl

check : minapl
	test/run_all_tests.sh

-include $(foreach f,$(SRCS),.deps/$f.d)


